package com.xxx.meter.ui.info.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xxx.meter.R;
import com.xxx.meter.model.http.bean.MachineRecordBean;

import java.util.List;

public class InfoMachineRecordAdapter extends BaseQuickAdapter<MachineRecordBean, BaseViewHolder> {

    public InfoMachineRecordAdapter(@Nullable List<MachineRecordBean> data) {
        super(R.layout.item_info_record, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MachineRecordBean item) {
        helper.setText(R.id.item_info_record_name, item.getName())
                .setText(R.id.item_info_record_time, item.getTime());
    }
}
